import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';
// 查询 担任职务下拉框
interface Message {}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	// 查询担任职务下拉框数据dt
	const p = query(action_id, session_id, systemid);
	p.prepare('post', ['post_no', 'post_name'], { productid}, 20,  1, [], []);
	const [dt] = await p.exec();
	// 查询部门下拉框数据dp
	const pp = query(action_id, session_id, systemid);
	pp.prepare('dept', ['department_no', 'deptname'], { productid}, 20,  1, [], []);
	const [dp] = await pp.exec();
	return {dt,dp};
}
